package com.lu.manage.modular.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lu.manage.core.common.node.TreeNodes;
import com.lu.manage.core.common.node.ZTreeNode;
import com.lu.manage.modular.system.model.Menu;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 菜单表 Mapper 接口
 * </p>
 *
 * @author stylefeng
 * @since 2018-12-07
 */
public interface MenuMapper extends BaseMapper<Menu> {

    List<String> findPermissionsByRoleId(String roleId);

    List<TreeNodes> getMenusByRoleIds(List<String> roleList);

    List<Map<String, Object>> selectMenuTree(String searchWords, String level);

    List<ZTreeNode> menuTreeList();

    List<Menu> getMenusLikePcodes(String code);

    int deleteRelationByMenu(String menuId);

    List<String> getMenuIdsByRoleId(String roleId);

    List<ZTreeNode> menuTreeListByMenuIds(List<String> menuIds);
}
